home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / kernel / goal.def < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.3 KB  |  45 lines  |  [TEXT/R*ch]

  1. /* Definitions of all the goal types in Xconq.
  2.    Copyright (C) 1993, 1994, 1995 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. DEF_GOAL("no-goal", GOAL_NO, "")
  10.  
  11. /* True if the side is known to have won. */
  12.  
  13. DEF_GOAL("won-game", GOAL_WON_GAME, "")
  14.  
  15. /* True if the side is known to have lost. */
  16.  
  17. DEF_GOAL("lost-game", GOAL_LOST_GAME, "")
  18.  
  19. /* True if the entire world is known to the side. */
  20.  
  21. DEF_GOAL("world-is-known", GOAL_WORLD_KNOWN, "")
  22.  
  23. DEF_GOAL("vicinity-is-known", GOAL_VICINITY_KNOWN, "xywh")
  24.  
  25. DEF_GOAL("positions-known", GOAL_POSITIONS_KNOWN, "S")
  26.  
  27. /* True if the side has any unit at the given cell. */
  28.  
  29. DEF_GOAL("cell-is-occupied", GOAL_CELL_OCCUPIED, "xy")
  30.  
  31. /* True if the side generally controls the given region. */
  32.  
  33. DEF_GOAL("vicinity-is-held", GOAL_VICINITY_HELD, "xywh")
  34.  
  35. DEF_GOAL("has-unit-type", GOAL_HAS_UNIT_TYPE, "un")
  36.  
  37. DEF_GOAL("has-unit-type-near", GOAL_HAS_UNIT_TYPE_NEAR, "unxyr")
  38.  
  39. DEF_GOAL("has-material-type", GOAL_HAS_MATERIAL_TYPE, "mn")
  40.  
  41. /* True if the unit is at the correct position relative to
  42.    another unit. */
  43.  
  44. DEF_GOAL("keep-formation", GOAL_KEEP_FORMATION, "Uxydf")
  45.